Fix notify::label emmision in GtkMenuItem
authorJan Arne Petersen <jpetersen@openismus.com>
Thu, 11 Mar 2010 14:40:55 +0000 (15:40 +0100)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 4 Apr 2010 00:59:15 +0000 (20:59 -0400)
commited9cff6fbb08988a4b00007d2d8d0d321520cb63
tree8b8bde6be1808b4ff8a1a0babc55e3c1deeb5a6e
parentc8ee1927a566a0df59a3e73c40edbc3463c1b1e4
Fix notify::label emmision in GtkMenuItem

Emit notify::label in GtkMenuItem also when label is changed through GtkAction.

Refactor GtkMenuItem and remove duplicated code for GtkLabel creation. Reset
the accel-widget back to the GtkMenuItem itself when there is no action related
to the GtkMenuItem anymore.

Add test for notify::label emmisions.

Fixes bug 612574 - GtkMenuItem does not emit notify::label when label is
changed through GtkAction.
gtk/gtkmenuitem.c
gtk/tests/Makefile.am
gtk/tests/action.c [new file with mode: 0644]